package com.efast.dmom.mgmt.utils;

public class AutoNum {
	
	public static void main(String[] args) {
		String a =AutoNum.generateAuto(999999);
		System.err.println(a);
	}
	
	public static  String generateAuto(int a) {
		String b= String.valueOf(a);
		int c = 8-b.length();
		for (int i = 0; i <c ; i++) {
			b="0"+b;
		}
		return b;
	}
	
}
